package com.supermali.system;

import com.supermali.creater.GameStarter;
import com.supermali.util.FrameRate;

import java.awt.*;

/**
 * 运行中的系统
 * */
public class RunningSystem extends AbstractSystem {

    public RunningSystem(GameStarter gameStarter,SystemHelper systemHelper) {
        super(gameStarter,systemHelper);
    }

    @Override
    public void exec(Graphics g, FrameRate frameRate) {
        gameStarter.proccessKey(frameRate.getDiff()); // 处理按键输入
        gameStarter.proccessMouse();
        gameStarter.show(g, frameRate.getDiff());
    }
}
